# 使用模块json存储数据
import json

numbers = [2, 3, 5, 7, 11, 13]

filename = 'numbers.json'
with open(filename, 'w') as f:
    json.dump(numbers, f) # dump翻译为倾倒,应该是json的写入


with open(filename) as f:
    numbers = json.load(f) # 导入后直接变成列表格式

print(numbers)

